home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / usplash.postrm < prev    next >
Encoding:
Text File  |  2007-04-02  |  1.2 KB  |  62 lines

  1. #!/bin/sh -e
  2. # This script can be called in the following ways:
  3. #
  4. # After the package was removed:
  5. #       <postrm> remove
  6. #
  7. # After the package was purged:
  8. #       <postrm> purge
  9. #
  10. # After the package was upgraded:
  11. #       <old-postrm> upgrade <new-version>
  12. # if that fails:
  13. #       <new-postrm> failed-upgrade <old-version>
  14. #
  15. #
  16. # After all of the packages files have been replaced:
  17. #       <postrm> disappear <overwriting-package> <version>
  18. #
  19. #
  20. # If preinst fails during install:
  21. #       <new-postrm> abort-install
  22. #
  23. # If preinst fails during upgrade of removed package:
  24. #       <new-postrm> abort-install <old-version>
  25. #
  26. # If preinst fails during upgrade:
  27. #       <new-postrm> abort-upgrade <old-version>
  28.  
  29.  
  30. # Update the initramfs
  31. update_initramfs()
  32. {
  33.     update-initramfs -u
  34. }
  35.  
  36.  
  37. case "$1" in
  38.     remove)
  39.     update_initramfs
  40.     ;;
  41.  
  42.     purge)
  43.         rm /etc/usplash.conf
  44.     ;;
  45.     upgrade|failed-upgrade|disappear|abort-install|abort-upgrade)
  46.     ;;
  47.  
  48.     *)
  49.     echo "$0 called with unknown argument \`$1'" 1>&2
  50.     exit 1
  51.     ;;
  52. esac
  53.  
  54. # Automatically added by dh_installinit
  55. if [ "$1" = "purge" ] ; then
  56.     update-rc.d usplash remove >/dev/null || exit $?
  57. fi
  58. # End automatically added section
  59.  
  60.  
  61. exit 0
  62.